// @ts-ignore
/* eslint-disable */
import request from '@/utils/request.ts'

/** 此处后端没有提供注释 POST /courseCategory/addCourseCategory */
export async function addCourseCategory(
  body: API.BizCourseCategory,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponse>('/courseCategory/addCourseCategory', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /courseCategory/deleteCourseCategory */
export async function deleteCourseCategory(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponse>('/courseCategory/deleteCourseCategory', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /courseCategory/getCourseCategoryIndex */
export async function getCourseCategoryIndex(options?: { [key: string]: any }) {
  return request<API.BaseResponseListCourseCategoryIndexDto>(
    '/courseCategory/getCourseCategoryIndex',
    {
      method: 'GET',
      ...(options || {}),
    }
  )
}

/** 此处后端没有提供注释 GET /courseCategory/getCourseCategoryTree */
export async function getCourseCategoryTree(options?: { [key: string]: any }) {
  return request<API.BaseResponseListCourseCategoryTreeDto>(
    '/courseCategory/getCourseCategoryTree',
    {
      method: 'GET',
      ...(options || {}),
    }
  )
}

/** 此处后端没有提供注释 POST /courseCategory/updateCourseCategory */
export async function updateCourseCategory(
  body: API.BizCourseCategory,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponse>('/courseCategory/updateCourseCategory', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
